﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SY.Uap.Entity;
using SY.WebSite.Entity;
using SY.WebSite.BLL;

namespace SY.WebSite.Web.UserControl
{
    public partial class UserPanel : System.Web.UI.UserControl
    {
        /// <summary>
        /// 可能为null，使用的时候要记得判断
        /// </summary>
        public User CurrentUser;

        public Integration CurrentIntegration;

        protected void Page_Load(object sender, EventArgs e)
        {
            CurrentUser = Auth.GetUser();
            if (CurrentUser != null)
                CurrentIntegration = BizIntegration.GetByKey(CurrentUser.UserId);            
        }
    }
}